<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/trymore" prefix="tm"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt'%>

<style>
	.apply_0 {background-color: #DDD}
	.apply_1 {background-color: #B0DCEF}
</style>

<script type="text/javascript">
	function callback_tabRefresh(id) {
		navTab.reload();
	}
</script>

<form id="pagerForm" method="post" action="app/flow/material.do?action=pageFlowMaterialIndex">
	<input type="hidden" name="pageNum" value="${pagingBean ne null ? pagingBean.currentPage : 1}" />
	<input type="hidden" name="numPerPage" value="${pagingBean ne null ? pagingBean.pageSize : 20}" />
</form>

<!-- SearchBar -->
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="app/flow/material.do?action=pageFlowMaterialIndex" method="post" id="searchForm" rel="pagerForm">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						<label>材料分类：</label>
						<input type="text" name="materialName" rel="pagerForm" value="${formEntity ne null ? formEntity.materialName : ''}" />
					</td>
					<td>
						<label>材料分类描述：</label>
						<input type="text" name="materialDesc" value="${formEntity ne null ? formEntity.materialDesc : ''}" />
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<!-- Body -->	
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="app/flow/material.do?action=dialogFlowMaterialPage" target="dialog" title="添加新材料分类" mask="true" width="504" height="280" rel="dia_sys_flowadd"><span>添加材料分类</span></a></li>
		</ul>
	</div>
	
	<%@ include file="datagrid/dataGridMaterial.jsp" %>
		
</div>